package com.easyaccount.service;

import com.easyaccount.dao.HotelMapper;
import com.easyaccount.model.Hotel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HotelService {

    @Resource
    private HotelMapper hotelMapper;

    public void save(List<Hotel> hotels){
        hotelMapper.insertBatch(hotels);
    }
}
